/*     */ package com.iris.egrant.app.service.grantsetting;
/*     */ 
/*     */ import com.iris.egrant.app.service.grantsetting.AppGrantSettingService;
/*     */ import com.iris.egrant.dao.proposal.ProposalCachedDao;
/*     */ import com.iris.egrant.dao.proposal.ProposalDao;
/*     */ import com.iris.egrant.exception.DaoException;
/*     */ import com.iris.egrant.grid.utils.PageContainer;
/*     */ import com.iris.egrant.model.grantSetting.FundSetting;
/*     */ import com.iris.egrant.model.grantSetting.FundSettingKey;
/*     */ import com.iris.egrant.model.grantSetting.GrantSchedule;
/*     */ import com.iris.egrant.model.grantSetting.GrantSetting;
/*     */ import com.iris.egrant.model.grantSetting.GrantSettingExtend;
/*     */ import com.iris.egrant.model.proposal.Proposal;
/*     */ import com.iris.egrant.model.proposal.ProposalCached;
/*     */ import com.iris.egrant.system.model.OrgOffice;
/*     */ import java.io.Serializable;
/*     */ import java.math.BigDecimal;
/*     */ import java.text.ParseException;
/*     */ import java.text.SimpleDateFormat;
/*     */ import java.util.ArrayList;
/*     */ import java.util.Date;
/*     */ import java.util.HashMap;
/*     */ import java.util.Iterator;
/*     */ import java.util.List;
/*     */ import java.util.Map;
/*     */ import net.sf.ehcache.Ehcache;
/*     */ import net.sf.ehcache.Element;
/*     */ import org.apache.commons.lang.math.NumberUtils;
/*     */ import org.springframework.beans.factory.annotation.Autowired;
/*     */ import org.springframework.stereotype.Service;
/*     */ import org.springframework.transaction.annotation.Transactional;
/*     */ import org.springframework.util.CollectionUtils;

/*     */ 
/*     */ @Service("appGrantSettingService")
/*     */ @Transactional(rollbackFor = {Exception.class})
/*     */ public class AppGrantSettingServiceImpl
/*     */   implements AppGrantSettingService
/*     */ {

/*     */   public List<Map<String, Object>> getGrantList(int count) {
/* 152 */     List<Map<String, Object>> grantList = new ArrayList<Map<String, Object>>();
/*     */ 
/*     */     
/* 155 */     Map<String, Object> params = new HashMap<String, Object>();
/* 156 */     params.put("grantLevel", Integer.valueOf(0));
/* 157 */     params.put("count", Integer.valueOf(count));
///* 158 */     List<Map<String, Object>> zeroLevel = this.myBatisDao.getSearchList("GrantSetting.getGrantSetting", params);
/*     */ 
///*     */
///* 161 */     for (int i = 0; i < zeroLevel.size(); i++) {
///* 162 */       params = new HashMap<String, Object>();
///* 163 */       params.put("parentCode", ((Map)zeroLevel.get(i)).get("grantCode"));
///* 164 */       params.put("orgCode", SecurityUtils.getCurrentOrgCode());
///* 165 */       params.put("count", Integer.valueOf(count));
///* 166 */       params.put("level", Integer.valueOf(1));
///* 167 */       List<Map<String, Object>> firstLevel = this.myBatisDao.getSearchList("GrantSetting.getGrantSettingShow", params);
///*     */
///* 169 */       Map<String, Object> largeGrant = new HashMap<String, Object>();
///* 170 */       largeGrant.put("zeroLevelMap", zeroLevel.get(i));
///* 171 */       largeGrant.put("firstLevelList", firstLevel);
///* 172 */       grantList.add(largeGrant);
///*     */     }
/* 174 */     return grantList;
/*     */   }
/*     */
/*     */ }


/* Location:              D:\文件\123\WEB-INF\classes\!\com\iris\egrant\app\service\grantsetting\AppGrantSettingServiceImpl.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       1.1.3
 */